/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.osdtsystem.dataset;

import org.osdtsystem.hierarchy.HClass;

/**
 * A single classification entry in a classification. Ie, a pair consisting of
 * a class and a dataset.
 * @param <H> the type of the classes
 * @author Matthias Buch-Kromann
 */
public class ClassificationEntry<H extends HClass> {
    private final H hclass;
    private Dataset dataset;

    public ClassificationEntry(final H hclass, final Dataset dataset) {
        this.hclass = hclass;
        this.dataset = dataset;
    }

    public int size() {
        return dataset.size();
    }

    public double weight() {
        return dataset.weight();
    }

    public Dataset dataset() {
        return dataset;
    }

    void setDataset(Dataset dataset) {
        this.dataset = dataset;
    }
}
